{extend name="$_admin_base_layout" /} {block name="body"}
<div class="container-fluid" style="padding-top: 10px; background-color: rgb(240, 242, 245);">
    <div class="panel">
        <div class="panel-body">
            <form class="form-inline form-search">
                <div class="form-group">
                    <label>状态：</label>
                    {html:select name="status" options="#data_status" selected="status" clazz="form-control" first="全部"/}
                </div>
                <div class="form-group">
                    <label>所在机构：</label>
                    {html:select name="office" options="office_tree" selected="office" clazz="form-control" first="全部"/}
                </div>

                <div class="form-group">
                    <label>用户账号/昵称：</label>
                    <input type="text" class="form-control" name="title" value="{$title|default=''}">
                </div>
                <button type="submit" class="btn btn-primary">查询</button>
                <button type="button" class="btn btn-default btn-reset">重置</button>
            </form>
        </div>
        <!-- 数据表格 -->
        <table class="table table-sorter">
            <!-- 表头 -->
            <thead>
            <tr>
                <th style="width: 20px;">#</th>
                <th>用户账号</th>
                <th>昵称</th>
                <th>所在机构</th>
                <th>用户类型</th>
                <th>登录次数</th>
                <th>最后登录IP</th>
                <th>最后登录时间</th>
                <th style="width: 80px;">状态</th>
                <th style="width: 110px;">操作</th>
            </tr>
            </thead>
            <!-- 列表 -->
            <tbody>
            {notempty name="data_list"} {volist name="data_list" id="info"}
            <tr>
                <td>{$i}</td>
                <td>{$info.name}</td>
                <td>{$info.title}</td>
                <td>{$info.office_title}</td>
                <td>{$info.type_text}</td>
                <td>{$info.login}</td>
                <td>{$info.last_login_ip|get_client_ip}</td>
                <td>{$info.last_login_time|date='Y-m-d H:i'}</td>
                <td>{$info.status_text|raw}</td>
                <td>
                    {html:auth name="admin/member/edit"}
                    <a href="{:url('modifyPwd',array('id'=>$info['id']))}" data-toggle="modal" data-icon="edit" data-backdrop="static">修改密码</a>
                    {/html:auth}
                    {eq name="info['status']" value="0"}
                    {html:auth name="admin/member/resume"}
                    <a href="{:url('resume',array('id'=>$info['id']))}" class="confirm ajax-get">启用</a>
                    {/html:auth}
                    {else/}
                    {html:auth name="admin/member/forbid"}
                    <a href="{:url('forbid',array('id'=>$info['id']))}" class="confirm ajax-get text-danger">禁用</a>
                    {/html:auth}
                    {/eq}
                </td>
            </tr>
            {/volist} {else/}
            <tr>
                <td class="text-center" colspan="10">aOh! 暂时还没有内容!</td>
            </tr>
            {/notempty}
            </tbody>
            <tfoot>
            <tr>
                <td colspan="10">{$pager||raw}</td>
            </tr>
            </tfoot>
        </table>
    </div>
</div>
{/block}
